﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BuscarConcepto.aspx.cs"  ClassName="Default.css" Inherits="Admin_BuscarConcepto" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Buscar Concepto</title>
    <link href="../App_Themes/Default.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="270">
            </asp:ScriptManager>
            <asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="100">
                 <ProgressTemplate>
                    <img alt="" height="20" src="../Images/25-1.gif" />
                    &nbsp;&nbsp; Buscando Conceptos
                </ProgressTemplate>
            </asp:UpdateProgress>               
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
            <table align="left" class="tablaForm" width="100%">
    <tr>
        <td class="tdCajas" colspan="2" style="height: 17px">
            <asp:Label ID="lblTitulo" runat="server" Text="Label"></asp:Label></td>
    </tr>
    <tr>
        <td align="right" class="tdLiteral" style="width: 20%; border: #aaaaaa 1px solid;
	padding: 2px;
	font-size: 9px;
	color: #333333;
	background-color: gainsboro;
	text-align: right;">
            C&oacute;digo:</td>
        <td class="tdForm" style="width: 80%; text-align:left ;border: #aaaaaa 1px solid;	padding: 2px; font-size: 9px; color: #333333; background-color: gainsboro; 	text-align: left" >
            <asp:TextBox ID="txtIdConcepto" runat="server" class="cuadrotxt100"></asp:TextBox></td>
    </tr>
    <tr>
        <td align="right" class="tdLiteral" style="width: 20%;border: #aaaaaa 1px solid;
	padding: 2px;
	font-size: 9px;
	color: #333333;
	background-color: gainsboro;
	text-align: right;">
            Concepto:</td>
        <td class="tdForm" style="width: 80%; text-align:left ;border: #aaaaaa 1px solid;	padding: 2px; font-size: 9px; color: #333333; background-color: gainsboro;
	text-align: lert">
            <asp:TextBox ID="txtConcepto" runat="server" class="cuadrotxt100"></asp:TextBox></td>
    </tr>
    <tr>
        <td align="center" class="tdBotones" colspan="2" style="BORDER-RIGHT: #aaaaaa 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: #aaaaaa 1px solid; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; BORDER-LEFT: #aaaaaa 1px solid; PADDING-TOP: 4px; BORDER-BOTTOM: #aaaaaa 1px solid; BACKGROUND-COLOR: #dfdfdd; TEXT-ALIGN: center">
            <asp:Button ID="btnBuscar" runat="server" OnClick="btnBuscar_Click" Text="Buscar"
                Width="75px" />&nbsp;
            <input id="btnCancelar" type="button" value="Cancelar"  onclick="javascript:window.close();" style="width: 75px"/></td>
    </tr>
    <tr align="center">
        <td colspan="2" style="width: 100%">
            <asp:GridView ID="gvClientes" runat="server" AutoGenerateColumns="False" CellPadding="3" GridLines="Vertical"  DataKeyNames="Id_Concepto" 
                OnPageIndexChanging="gvClientes_PageIndexChanging" OnRowDataBound="gvClientes_RowDataBound" AllowPaging="True"
                OnSelectedIndexChanged="gvClientes_SelectedIndexChanged" Width="100%" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px">
                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                <Columns>
                    <asp:TemplateField HeaderText="C&#243;digo">
                        <HeaderStyle ForeColor="White" />
                        <ItemTemplate>
                            <asp:Label ID="gvIdConcepto" runat="server" Text='<%# Bind("Id_Concepto") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Cod. Ex.">
                        <HeaderStyle ForeColor="White" />
                        <ItemTemplate>
                            <asp:Label ID="gvCodEx" runat="server" Text='<%# Bind("CodEx") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Concepto">
                        <HeaderStyle ForeColor="White" />
                        <ItemTemplate>
                            <asp:Label ID="gvConcepto" runat="server" Text='<%# Bind("Concepto") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField ShowHeader="False">
                        <HeaderStyle ForeColor="White" />
                        <ItemTemplate>
                            <a href="javascript:returnvalue('<%# ((GridViewRow)Container).FindControl("gvIdConcepto").ClientID%>','<%# ((GridViewRow)Container).FindControl("gvConcepto").ClientID%>','<%# ((GridViewRow)Container).FindControl("gvCodEx").ClientID%>')">Seleccionar</a> 
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                    <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#325FB9" Font-Bold="False" Font-Names="Arial Rounded MT Bold" ForeColor="White" />
                    <AlternatingRowStyle BackColor="Gainsboro" />                    
            </asp:GridView>
        </td>
    </tr>
</table>
                </ContentTemplate>
                <Triggers>
                    <asp:PostBackTrigger ControlID="btnBuscar" />
                </Triggers>
            </asp:UpdatePanel>
            <br />
        </div>
    </form>
</body>
</html>
